package com.heima.datastructure.priorityqueue;

/**
 * 实现优先级接口的类
 * @author 勾新杰
 * @version 1.0
 * @date 2024/9/3 0:01
 */
public class Entry implements Priority {
    private String value;
    private int priority;

    public Entry() {
    }

    public Entry(String value, int priority) {
        this.value = value;
        this.priority = priority;
    }

    @Override
    public int priority() {
        return priority;
    }

    @Override
    public String toString() {
        return "Entry{" +
                "value='" + value + '\'' +
                ", priority=" + priority +
                '}';
    }
}
